package net.lzzy.chapter13;

public class Student implements Comparable<Student> {
    private int ID;
    private String Name;
    private String Sex;
    private double soure;

    public Student() {
    }

    public Student(int ID, String name, String sex, double soure) {
        this.ID = ID;
        Name = name;
        Sex = sex;
        this.soure = soure;
    }

    public int getID() {
        return ID;
    }

    public void setID(int ID) {
        this.ID = ID;
    }

    public String getName() {
        return Name;
    }

    public void setName(String name) {
        Name = name;
    }

    public String getSex() {
        return Sex;
    }

    public void setSex(String sex) {
        Sex = sex;
    }

    public double getSoure() {
        return soure;
    }

    public void setSoure(double soure) {
        this.soure = soure;
    }

    @Override
    public int compareTo(Student o) {
            return 0;
    }

    @Override
    public String toString() {
        return "ID: "+ID+" 姓名: "+Name+" 性别: "+ Sex +" 分数: "+soure+"\n";
    }
}
